<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org/">
<head>
<title>账号激活</title>
	<script type="text/javascript" th:src="@{/user/js/jquery.min.js}"></script>
	<i th:replace="~{common :: baseUrl}"></i>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">


<!--可无视-->
<link rel="stylesheet" th:href="@{/user/css/bootstrap.min.css}">

<!--主要样式-->
<link type="text/css" th:href="@{/user/css/style.css}" rel="stylesheet" />


</head>
<body>

<div class="container" align="center">
	<div class="col-md-6" style="margin-top: 20%;">
		<div class="inset">
			<form  id="login" >
				<input type="hidden" name="enews" value="login">
				<div>
					<h2>APP账号--使用邮箱激活</h2>
					<span style="text-align: left;text-indent: 0.4em;"><label>用户名</label></span>
					<span><input type="text" name="devUsername" class="textbox" ></span>
				</div>
				<div>
					<span style="text-align: left;text-indent: 0.4em;"><label>用户邮箱</label></span>
					<span><input  name="devEmail" type="email" class="password"></span>
				</div>
				<div class="sign">
					<input type="button"  class="submit" value="登录" onclick="location.href='/dev/user/login-ui'"/>
					<input type="button" id="sub" value="激活" class="submit" />
				</div>
				<span id="msg"  ></span>
			</form>
		</div>
	</div>
</div>

<script>

	$("#sub").click(function () {
		var data = $("#login").serialize();
		$.post(
				baseUrl+"dev/user/nextActive",
				data,
				function (result) {
					if (result.code==0){
						$("#msg").html(result.data).css("color","green");
					}else {
						$("#msg").html(result.msg).css("color","red");
					}
				},
				"json"
		)
	});




if(document.login.equestion.value==0)
{
	showanswer.style.display='none';
}
</script>

</body>
</html>